<%@ page language="java" import="java.util.*,Reservation.*,Application.Dao.*"%>
   
<%
response.setContentType("text/xml");
response.setHeader("Cache-Control", "no-store"); //HTTP1.1
response.setHeader("Pragma", "no-cache"); //HTTP1.0
response.setDateHeader("Expires", 0); //prevents catching at proxy server
System.out.println(request.getParameter("email"));
//check the database
UserBean user=UserDAO.loadByEmail("'"+request.getParameter("email")+"'");
if(null==user){
	response.getWriter().write("<msg>invalid</msg>");
}
else
{
	response.getWriter().write("<msg>valid</msg>");
}


%>

